//
//  LCSignUpHolyWorkViewController.m
//  JKFuYinProject
//
//  Created by jiukuyinyue on 2017/9/8.
//  Copyright © 2017年 LC. All rights reserved.
//

#import "LCSignUpHolyWorkViewController.h"
#import "LCSignUpSGTextField.h"

@interface LCSignUpHolyWorkViewController ()

@end

@implementation LCSignUpHolyWorkViewController{
    NSTimer         *_timer;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.title = @"报名圣工";
    
}

- (IBAction)clickButton:(UIButton *)sender {
    [self clickSubmitButton:sender];
}
- (void)clickSubmitButton:(UIButton *)sender {
    [SVProgressHUD showSuccessWithStatus:@"您的报名信息已收到, 我们会根据具体需求跟您联系"];
    _timer = [NSTimer scheduledTimerWithTimeInterval:5.0 target:self selector:@selector(doTimer) userInfo:nil repeats:YES];
}
- (void)doTimer {
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)dealloc {
    [self clearTimer];
}

- (void)clearTimer {
    if(_timer) {
        if([_timer isValid]) [_timer invalidate];
    }
    _timer = nil;
}
@end
